package com.momochen.alarmclockdemo.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

/**
 * Created by momochen on 2017/7/9.
 */

@Entity(nameInDb = "t_alarm")
public class AlarmBean implements Serializable {
    public static final long serialVersionUID = 1L;

    // 对应的公共的每一列的映射
    @Id(autoincrement = true)
    private Long id;
    private boolean enabled;     //开关
    private int hour;            //小时
    private int minutes;         //分钟
    private int daysOfWeek;     //循环周期  周还是天
    private long timeStamp;     //时间戳
    private boolean isVibrate;  //是否震动
    private String note;        //备注
    private boolean isSilent;   //是否静音
    private String bellStr;     //铃声

    @Generated(hash = 1279568022)
    public AlarmBean(Long id, boolean enabled, int hour, int minutes,
                     int daysOfWeek, long timeStamp, boolean isVibrate, String note,
                     boolean isSilent, String bellStr) {
        this.id = id;
        this.enabled = enabled;
        this.hour = hour;
        this.minutes = minutes;
        this.daysOfWeek = daysOfWeek;
        this.timeStamp = timeStamp;
        this.isVibrate = isVibrate;
        this.note = note;
        this.isSilent = isSilent;
        this.bellStr = bellStr;
    }

    @Generated(hash = 1834917355)
    public AlarmBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public boolean getEnabled() {
        return this.enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public int getHour() {
        return this.hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinutes() {
        return this.minutes;
    }

    public void setMinutes(int minutes) {
        this.minutes = minutes;
    }

    public int getDaysOfWeek() {
        return this.daysOfWeek;
    }

    public void setDaysOfWeek(int daysOfWeek) {
        this.daysOfWeek = daysOfWeek;
    }

    public long getTimeStamp() {
        return this.timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public boolean getIsVibrate() {
        return this.isVibrate;
    }

    public void setIsVibrate(boolean isVibrate) {
        this.isVibrate = isVibrate;
    }

    public String getNote() {
        return this.note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public boolean getIsSilent() {
        return this.isSilent;
    }

    public void setIsSilent(boolean isSilent) {
        this.isSilent = isSilent;
    }

    public String getBellStr() {
        return this.bellStr;
    }

    public void setBellStr(String bellStr) {
        this.bellStr = bellStr;
    }
}
